<script setup>
const now = Date.now();
const firstJobTime = new Date('2020/3/15');
const birthday = new Date('1997/10/11');

function formatAge(ms, fixed = 0) {
    return (ms / 1000 / 60 / 60 / 24 / 365).toFixed(fixed);
}

const workAge = formatAge(now - firstJobTime, 1);
const age = formatAge(now - birthday);
const email = '3099942916@qq.com';

const infos = [
    '🎓' + '硕士',
    '👩🏻‍🎓' + '女',
    '🐣' + '1997-10',
    '🌻' + '中共党员',
    '📞' + '18294863237',
].join(' | ');

</script>

<template>
    <div style="display: flex;">
        <div style="flex: 1;">
            <h1>韩万仓</h1>
            <p> {{ infos }} </p>
            <p>✉️ {{email}} </p>
            <p>🏅 高级中学化学教师资格证、英语CET-4、普通话二级乙等、计算机二级</p>
        </div>
        <img src="./hwc.png" style="height: 170px;"/>
    </div>
</template>